{include file="public/header" select="0" /}
<body>
<div class="title bgc profile-title">我的</div>

<div class="profile-header">
    <img src="{$user.photo}" onerror="this.src='/static/index/img/default.png'" alt="">
    <div class="profile-news">
        <p>{$user.nickname}</p>
        <p>ID：{$user.code}</p>
        <p>{$user.is_active == 1?'普通会员':'正式会员'}{if $user.level} <span class="layui-badge">{$user.level.title}</span>{/if}
        </p>
    </div>
    <i class="layui-icon layui-icon-set" onclick="load_href('{:url(\'user/setting\')}',2)"></i>
</div>

<div class="profile-order">
    <div class="index-join bgc">
        <div class="index-join-title">
            <span>我的订单</span>
            <div><a href="{:url('order/my_order')}">更多<i class="layui-icon layui-icon-right"></i></a></div>
        </div>
        <ul class="index-join-container">
            <li>
                <a href="{:url('order/my_order')}?type=1">
                    <img src="/static/index/img/icon2.png" alt="">
                    <p>待付款</p>
                </a>
            </li>
            <li>
                <a href="{:url('order/my_order')}?type=2">
                    <img src="/static/index/img/icon4.png" alt="">
                    <p>待发货</p>
                </a>
            </li>
            <li>
                <a href="{:url('order/my_order')}?type=3">
                    <img src="/static/index/img/icon3.png" alt="">
                    <p>待收货</p>
                </a>
            </li>
            <li>
                <a href="{:url('order/my_order')}?type=4">
                    <img src="/static/index/img/icon1.png" alt="">
                    <p>已完成</p>
                </a>
            </li>
        </ul>
    </div>
</div>

<ul class="profile-ul">
    <li>
        <a href="{:url('account/index')}">
            <p>
                <img src="/static/index/img/zh.png" alt="">我的账户
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('user/my_team')}">
            <p>
                <img src="/static/index/img/team.png" alt="">我的团队
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('address/index')}">
            <p>
                <img src="/static/index/img/address.png" alt="">收货地址
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('remit/index')}">
            <p>
                <img src="/static/index/img/remit.png" alt="">我要充值
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('draw/index')}">
            <p>
                <img src="/static/index/img/draw.png" alt="">我要提现
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('transfer/index')}">
            <p>
                <img src="/static/index/img/moneyHz.png" alt="">我要转账
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('exchange/index')}">
            <p>
                <img src="/static/index/img/zh1.png" alt="">我要转换
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('message/index')}">
            <p>
                <img src="/static/index/img/yjfk.png" alt="">意见反馈
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
    <li>
        <a href="{:url('security/index',['type'=>'password'])}">
            <p>
                <img src="/static/index/img/aq.png" alt="">安全中心
            </p>
            <i class="layui-icon layui-icon-right"></i>
        </a>
    </li>
</ul>
<div class="pay-btn logout"><a>退出登录</a></div>
{include file="public/nav" select="4" /}
</body>
{include file="public/footer" select="0" /}
<script>
    $('.logout').click(function () {
        layer.confirm('是否退出登录？', {title: '请确认'}, function (index) {
            _ajax('{:url("user/logout")}');
        });
    });
</script>